/* --- Imports & Variables --- */
/* Convergence for headings, Inter for body */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&family=Convergence&display=swap');

:root{
  --navy: #0f172a;
  --ringoo-blue: #0648ac; /* user blue */
  --soft-gray: #f1f5f9;   /* Grey A - light gray used to connect sections */
  --ringoo-yellow: #e2992c;
  --card-radius: 30px;
  --max-width: 1200px;
  --text-white: #fff;

  /* footer / layout vars */
  --logo-size: 260px;
  --ringo-blue: #003399;
  --max-content-width: 76rem;
  --padding-sm: 1.5rem;
  --padding-lg: 3rem;
  --padding-xs: 1rem;
}

/* --- Global Reset & Typography --- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; font-family: 'Inter', Arial, sans-serif; background: #fff; color: #111; scroll-behavior: smooth; }
h1, h2, h3 { margin: 0; font-family: 'Convergence', sans-serif; }
p { margin: 0; }
a {
    text-decoration: none;
    color: #003399;
}

.container {
  width: 90%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

/* Floating currency selector (kept as you had improved it) */
#currency-selector {
  position: fixed;
  top: 10rem;
  right: 1.5rem;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#currency-btn {
  background-color: #003399;
  color: white;
  padding: 0.75rem 1.25rem;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: background-color 0.3s, transform 0.1s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#currency-panel {
  background-color: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  width: 250px;
  margin-bottom: 0.5rem;
  overflow: hidden;
  display: none;
  transform-origin: bottom right;
  animation: fadeInScale 0.2s ease-out;
}
#currency-panel.open { display: block; }

@keyframes fadeInScale {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

.currency-option { padding: 0.75rem 1rem; cursor: pointer; display: flex; align-items: center; justify-content: space-between; font-size: 0.95rem; color: #333; transition: background-color 0.2s; }
.currency-option:hover { background-color: #f0f4f8; }
.currency-flag { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(0,0,0,0.1); }

/* WhatsApp floating button */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 999;
}

.whatsapp-float .wa-icon {
  background: #003399;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s ease;
}

.whatsapp-float .wa-icon img {
  width: 28px;
  height: 28px;
}

.whatsapp-float .wa-text {
  background: #003399;
  color: #fff;
  padding: 12px 18px;
  border-radius: 30px;
  margin-right: 10px;
  font-size: 14px;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(10px);
  pointer-events: none;
  transition: 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

/* Hover effect */
.whatsapp-float:hover .wa-text {
  opacity: 1;
  transform: translateX(0);
}

.whatsapp-float:hover .wa-icon {
  transform: scale(1.05);
}


/* --- Animations --- */
@keyframes floaty { 0% { transform: translateY(0) } 50% { transform: translateY(-8px) } 100% { transform: translateY(0) } }
.floaty-animation { animation: floaty 5s ease-in-out infinite; }

/* --- 1. HERO SECTION & NAVBAR --- */
.nav-bar{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding-top: 28px;
  padding-right: 4%;
  padding-left: 200pt;
  padding-bottom: 28px;
  background: rgba(6,72,172,0.5);
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 0;
}
.nav-bar .logo-img { height: 60px; margin-left: 90px; }

.nav-content-wrapper {
  display: flex;
  align-items: stretch; /* Important: make children stretch to full height */
  background: rgba(255,255,255,0.4);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border-radius: 30px;
  padding: 0; /* Remove vertical padding */
  padding-left: 15px; /* Only keep horizontal padding */
  padding-right: 0; /* No right padding since yellow section will handle it */
  overflow: hidden;
  margin-right: 200px;
  height: 60px; /* Set a fixed height for consistency */
}

.nav-links { 
  display: flex; 
  align-items: center; 
  padding: 0; 
  gap: 8px;
  height: 100%; /* Take full height of parent */
}

.nav-links a,
.nav-links .nav-link { /* Add this line to target both */
  color: var(--navy);
  background-color: transparent;
  font-weight: 600;
  margin-left: 0;
  padding: 8px 18px;
  border-radius: 20px;
  transition: all 0.3s ease;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  height: 70%;
  white-space: nowrap;
}

/* Update all the active state selectors to include .nav-link */
.nav-links a.active,
.nav-links .nav-link.active { /* Add this line */
  background-color: var(--ringoo-blue);
  color: white !important;
  box-shadow: 0 4px 10px rgba(6,72,172,0.4);
  font-weight: 700;
}

/* Update Products link active state */
.nav-links a[href="#coin-shop"].active,
.nav-links .nav-link[href="#coin-shop"].active { /* Add this line */
  background: var(--ringo-blue);
  box-shadow: 0 4px 10px rgba(0, 51, 153, 0.4);
}

/* Update hover effects to include .nav-link */
.nav-links a:hover,
.nav-links .nav-link:hover { /* Add this line */
  background-color: transparent;
  transform: scale(1.08);
  color: var(--navy);
}

.nav-links a.active:hover,
.nav-links .nav-link.active:hover { /* Add this line */
  background-color: var(--ringoo-blue);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(6,72,172,0.5);
}

.nav-links a[href="#coin-shop"].active:hover,
.nav-links .nav-link[href="#coin-shop"].active:hover { /* Add this line */
  background: var(--ringo-blue);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 51, 153, 0.5);
}

/* Hover effect for active nav items - maintain blue background with slight zoom */
.nav-links a.active:hover {
  background-color: var(--ringoo-blue);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(6,72,172,0.5);
}

/* Products link specific hover */
.nav-links a[href="#coin-shop"].active:hover {
  background: var(--ringo-blue);
  transform: scale(1.05);
  box-shadow: 0 6px 15px rgba(0, 51, 153, 0.5);
}

.nav-bar-extra {
  display: flex;
  align-items: center;
  background-color: var(--ringoo-yellow);
  border-radius: 0 30px 30px 0;
  padding: 0 25px; /* Reduced padding to remove extra space */
  color: var(--navy);
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: inset 1px 0 0 rgba(0,0,0,0.1);
  flex-shrink: 0;
  transition: background-color 0.2s ease;
  height: 100%;
  margin: 0;
  align-self: stretch;
  gap: 15px; /* Add gap between balance and cart icon */
}

.nav-bar-extra a {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  position: relative; /* Add this for cart count positioning */
}

.nav-bar-extra .balance-text { 
  color: var(--navy); 
  font-weight: 700;
  white-space: nowrap;
  /* Remove margin-right since we're using gap now */
}

.cart-icon-wrapper {
  display: flex;
  align-items: center;
  position: relative;
}

.cart-count {
  position: absolute; 
  top: -8px; 
  right: -8px; /* Changed from -5px to -8px (moved left) */
  background: black !important;
  color: white !important;
  font-size: 0.7rem; 
  font-weight: 900; 
  width: 18px; 
  height: 18px;
  border-radius: 50%; 
  display: flex; 
  justify-content: center; 
  align-items: center; 
  line-height: 1;
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.nav-bar-extra .cart-icon-wrapper .cart-icon {
  filter: brightness(0) !important;
  width: 23px !important; /* Increased from 22px to 23px */
  height: 23px !important; /* Increased from 22px to 23px */
}

/* hero: removed invalid negative padding-top and use safe spacing */
.hero {
  height: 100vh;
  width: 100%;
  background-attachment: fixed;
  position: relative;
  color: white;
  display: flex;
  align-items: flex-start;
  margin-top: -20px;
}

.hero-content-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  min-height: calc(100vh - 90px);
}

.hero-text-area {
  max-width: 60%;
  display: flex;
  flex-direction: column;
  align-items: left;
  text-align: left;
}
.hero-text-area img { width: 110px; height: 110px; margin-bottom: 15px; margin-right: -80px; }
.hero-text-area h1 {
  font-size: 3.7rem; font-weight: 900; margin-bottom: 20px; white-space: nowrap;
  text-shadow: 0 0 5px rgba(0,0,0,0.5);
}
.hero-text-area p { font-size: 1.8rem; line-height: 1.4; max-width: 100%; margin: 0 auto 30px auto; }
.hero-image-gif img { width: 120%; max-width: 600px; height: auto; border-radius: var(--card-radius); box-shadow: none; padding-left: 100px;}

/* connect button cart icon */
.connect-btn.yellow-btn .button-cart-icon { width: 26px; height: 26px; filter: brightness(0) invert(1); }

/* --- 2. MAJOR SECTION & SHOP CARDS --- */
.major {
  background: var(--soft-gray);
  border-top-left-radius: 80px;
  border-top-right-radius: 80px;
  padding: 50px 0;
  margin-top: -230px;
  position: relative;
  z-index: 20;
  box-shadow: 0 -10px 20px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}
.major h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    color: var(--ringoo-blue);
    margin-bottom: 50px;
    position: relative;
    display: inline-block;
}
.major h2::after {
  content: '';
  position: absolute; left: 0; bottom: -10px; width: 100%; height: 4px;
  background: linear-gradient(to right, var(--ringoo-blue) 0%, #ffffff 50%, transparent 100%);
  border-radius: 2px;
}
.major-grid { display: flex; justify-content: space-around; align-items: center; text-align: center; padding: 20px 0; }
.major-item { flex-basis: 30%; display: flex; flex-direction: column; align-items: center; }
.major-item .icon-wrapper { background: transparent; padding: 0; border-radius: 0; margin-bottom: 10px; box-shadow: none; }
.major-item img { width: 70px; height: 70px; object-fit: contain; }
.major-item p { font-size: 1.6rem; font-weight: 500; color: #333; margin-top: 10px; text-align: center; line-height: 1.4; max-width: 86%; margin-left: auto; margin-right: auto; }
.arrow-icon { width: 20px; height: 20px; opacity: 0.5; margin: 0 10px; }

.shop-section,
.shop-grid,
.shop-cards,
#coin-shop {
  background: var(--soft-gray);
  margin-top: 20px;
  padding-top: 50px;
}

#coin-shop {
  border-bottom-right-radius: 60px;
  border-bottom-left-radius: 65px;
  position: relative;
  z-index: 5;
  margin-bottom: 80px;
  padding-bottom: 80px;
  background: var(--soft-gray);
  margin-top: 100px;
}

/* --- 4. CONNECT SECTION --- */
.connect {
  background: white;
  height:680px;
  padding-top: 160px;
  padding-bottom: 0;
  margin-bottom: -20px;
  position: relative;
  overflow: hidden;
  border-bottom: none;
  margin-top: -200px;
}

.connect::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding-top: 500px;
  background-image: url('../Media/coins - Copy.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  z-index: 1;
}
.connect * { position: relative; z-index: 2; }

.connect-grid, .connect-text, .connect-img { margin-bottom: 0; }

.connect-grid {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  text-align: left;
}
.connect-text { max-width: 80%; text-align: left; margin-left: 50px; }
.connect-text h2 {
  font-size: 2.5rem; font-weight: 800; color: var(--ringoo-blue); margin-bottom: 20px; white-space: nowrap;
}
.connect-text p { font-size: 1.4rem; color: var(--ringoo-blue); line-height: 1.6; margin-bottom: 30px; }

.connect-btn.yellow-btn {
  background: var(--ringoo-yellow);
  color: var(--text-white);
  border: none;
  padding: 20px 30px;
  font-size: 1.2rem;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 700;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 15px rgba(226,153,44,0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  white-space: nowrap;
}

/* Ensure the SVG icon displays properly */
.connect-btn.yellow-btn .cart-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0; /* Prevent the icon from shrinking */


}
.connect-btn.yellow-btn:hover { background: #d88f25; transform: translateY(-2px); }

.connect-img { flex-shrink: 0; }
.connect-img img { width: 100%; max-width: 600px; height: auto; display: block;padding-top: 80px; margin-left: -20px; }

/* --- 5. FOOTER SECTION --- */
.footer {
  margin-top: 0;
  padding-top: 0;
  padding-bottom: 40px;
  background: var(--navy);
  color: #fff;
  text-align: center;
  position: relative;
}

.ringo-footer { background-color: var(--ringo-blue); color: white; width: 100%; }

.footer-main-content {
  max-width: var(--max-content-width);
  margin-left: auto;
  margin-right: auto;
  padding: 2.5rem var(--padding-xs);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

@media (min-width: 1024px) {
  .footer-main-content {
    padding-left: var(--padding-lg);
    padding-right: var(--padding-lg);
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
  }
}

.logo-text-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 2rem;
}

.logo-box {
  width: var(--logo-size);
  height: auto;
  overflow: visible;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateX(-12px);
  padding-left: 0;
}
.logo-box .logo-img { width: 100%; height: auto; object-fit: contain; }

.contact-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.contact-text h3, .footer-right-content h3 {
  font-size: 1.5rem; font-weight: 600; margin-top: 0; margin-bottom: 0.5rem;
}
.contact-text p {
  font-size: 1rem; opacity: 0.9; max-width: 28rem;
}

.vertical-divider { display: none; }
@media (min-width: 768px) {
  .vertical-divider {
    display: block; width: 2px; min-height: 110px; background-color: white;
    margin-left: 1rem; margin-right: 1rem;
  }
}

.footer-right-content .social-links-wrapper { display: flex; flex-wrap: wrap; gap: 1rem; }

.social-link-circle {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  transition: transform 0.2s ease-in-out;
}
.social-link-circle:hover { transform: scale(1.1); }

.social-link-circle img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  opacity: 1;
}

.footer-copyright-bar {
  width: 100%;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.footer-copyright-bar-inner {
  max-width: var(--max-content-width);
  margin-left: auto; margin-right: auto;
  padding: 0.75rem var(--padding-xs);
  font-size: 0.875rem;
  font-style: italic;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 640px) {
  .footer-copyright-bar-inner { padding-left: var(--padding-sm); padding-right: var(--padding-sm); }
}
@media (min-width: 768px) {
  .footer-copyright-bar-inner {
    padding-left: var(--padding-lg); padding-right: var(--padding-lg);
    grid-template-columns: 1fr 1fr; gap: 2rem;
  }
  .footer-copyright-bar-inner .copyright-text { text-align: left; margin: 0; }
  .footer-copyright-bar-inner .developer-text { text-align: right; margin: 0; }
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
  .nav-content-wrapper { 
    padding: 0 10px; 
    height: 45px; /* Adjusted for smaller screens */
  }
  .nav-links { gap: 5px; }
  .nav-links a { 
    padding: 6px 12px; 
    font-size: 0.9rem; /* Smaller font on tablet */
  }
  .nav-bar-extra { 
    padding: 0 20px;
    font-size: 0.9rem;
  }
  .nav-bar-extra .balance-text { margin-right: 10px; }

  .hero-text-area h1 { font-size: 3.5rem; }
  .hero-text-area p { font-size: 1.15rem; }

  .hero-content-wrapper { flex-direction: column; text-align: center; }
  .hero-text-area { max-width: 100%; align-items: center; }
  .hero-text-area p { max-width: 100%; }
  .hero-image-gif img { max-width: 350px; }

  .shop-grid { grid-template-columns: repeat(2,1fr); }
  .connect-grid { flex-direction: column-reverse; text-align: center; }
  .connect-text { max-width: 100%; text-align: center; }
  .connect-text h2 { white-space: normal; }
  .connect-img img { max-width: 300px; }
}

@media (max-width: 768px) {
  .nav-links a[href="#about-us"] {
    font-size: 0.85rem; /* Even smaller for mobile */
    padding: 6px 10px;
  }
}

@media (max-width: 640px) {
  .nav-content-wrapper { display: none; }
  .nav-bar { justify-content: space-between; }

  .hero { background-attachment: scroll; }
  .major-grid { flex-direction: column; gap: 20px; }
  .major-item { flex-basis: 100%; }
  .arrow-icon { display: none; }
  .shop-grid { grid-template-columns: 1fr; }
  .hero-text-area h1 { font-size: 2.5rem; }
  .connect-text h2 { font-size: 2rem; }

  .major-item p {
    font-size: 1.3rem;
    max-width: 90%;
    color: #FFFFFF;
  }
  .logo-box { transform: translateX(0); width: 180px; }
  .social-link-circle { width: 26px; height: 26px; }
  .social-link-circle img { width: 16px; height: 16px; }
}
.coin-only{margin-left: 500px}

html {
  scroll-behavior: smooth;
}

section {
  scroll-margin-top: 90px;
}
